package 乒乓球框;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.next();
        String s2 = in.next();
        int n = s1.length();
        int m = s2.length();
        int[] hash1 = new int[26];
        int[] hash2 = new int[26];
        for (int i = 0; i < n; i++) {
            hash1[s1.charAt(i) - 'A']++;
        }
        for (int i = 0; i < m; i++) {
            hash2[s2.charAt(i) - 'A']++;
        }
        for (int i = 0; i < 26; i++) {
            if (hash1[i] < hash2[i]) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}
